icon-size: 36px;
}
+.chat-log-message {
+ color: #888888;
+}
+
.chat-received {
background-gradient-direction: horizontal;
background-gradient-start: rgba(255, 255, 255, 0.2);
if (!isPending) {
showTimestamp = true;
- this._notification.appendMessage(logMessage, true);
+ this._notification.appendMessage(logMessage, true, ['chat-log-message']);
}
}
* @noTimestamp: Whether to add a timestamp. If %true, no timestamp
* will be added, regardless of the difference since the
* last timestamp
+ * @styles: A list of CSS class names.
*/
- appendMessage: function(message, noTimestamp) {
+ appendMessage: function(message, noTimestamp, styles) {
let messageBody = GLib.markup_escape_text(message.text, -1);
- let styles = [message.direction];
+ styles = styles || [];
+ styles.push(message.direction);
if (message.messageType == Tp.ChannelTextMessageType.ACTION) {
let senderAlias = GLib.markup_escape_text(message.sender, -1);